package com.fuxi;

import java.util.Scanner;

public class fuxi_demo06 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入第一个值");
        int num1 = sc.nextInt();
        System.out.println("请输入第二个值");
        int num2 = sc.nextInt();

       int  sum = num1 + num2;
       int  sub = num1 - num2;
        System.out.println("加法为："+sum);
        System.out.println("减法为："+sub);
    }
}
